﻿using System;
using System.ComponentModel.DataAnnotations;
using TimeManager.Domain.Entities;

namespace TimeManager.Web.ViewModels {

    public class TaskViewModel {
 
        public Int32 TaskId { get; set; }
        [Required]
        public String Description { get; set; }
        [Required]
        public String TimeStartDate { get; set; }
        [Required]
        public String TimeStartTime { get; set; }
        [Required]
        public TimeSpan Duration { get; set; }

        [Required]
        public Int32 UserId { get; set; }
        public virtual User User { get; set; }

        [Required]
        public Int32 ProjectId { get; set; }
        public virtual Project Project { get; set; }

    }
}